package com.qyhl.module_practice.newhome.code;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeVolunteerDetailBean;

public class PracticeQRCodePresenter implements PracticeQRCodeContract.PracticeQRCodePresenter {
    private PracticeQRCodeActivity mView;
    private PracticeQRCodeModel mModel;

    public PracticeQRCodePresenter(PracticeQRCodeActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeQRCodeModel(this);
    }


    @Override
    public void getDetail(String volId) {
        mModel.getDetail(volId);
    }

    @Override
    public void setDetail(PracticeVolunteerDetailBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
